<script setup>
    // 1. 导入use方法
    import { useCounterStore } from "@/stores/counter"
    // 2. 执行方法得到store store里有数据和方法对象
    const counterStore = useCounterStore()
</script>

<template>
    {{ counterStore.count }}
    <button @click="counterStore.increment">++</button>
</template>

<style lang="less" scoped></style>
